/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "工步作业表",TableName = "pprecords_step",DBServer = "SmesDbContext")]
    public partial class pprecords_step:SmesEntity
    {
        /// <summary>
       ///工步唯一标识
       /// </summary>
       [Key]
       [Display(Name ="工步唯一标识")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string StepID { get; set; }

       /// <summary>
       ///工步编码
       /// </summary>
       [Display(Name ="工步编码")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string StepCode { get; set; }

       /// <summary>
       ///工步名称
       /// </summary>
       [Display(Name ="工步名称")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string StepName { get; set; }

       /// <summary>
       ///作业的设备编码
       /// </summary>
       [Display(Name ="作业的设备编码")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string EquipmentCode { get; set; }

       /// <summary>
       ///报工人员名称
       /// </summary>
       [Display(Name ="报工人员名称")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string UserName { get; set; }

       /// <summary>
       ///工步状态（0=未开始,1=进行中,2=完成）
       /// </summary>
       [Display(Name ="工步状态（0=未开始,1=进行中,2=完成）")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? StepStatus { get; set; }

       /// <summary>
       ///工步顺序号（需校验唯一性）
       /// </summary>
       [Display(Name ="工步顺序号（需校验唯一性）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int StepSeqNum { get; set; }

       /// <summary>
       ///工序ID
       /// </summary>
       [Display(Name ="工序ID")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ProcessID { get; set; }

       /// <summary>
       ///是否为最终工步（0=否,1=是）
       /// </summary>
       [Display(Name ="是否为最终工步（0=否,1=是）")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? IsEndStep { get; set; }

       /// <summary>
       ///作业总时间
       /// </summary>
       [Display(Name ="作业总时间")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? WorkTime { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///结束时间（统一时间类型）
       /// </summary>
       [Display(Name ="结束时间（统一时间类型）")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? EndTime { get; set; }

       /// <summary>
       ///批次号
       /// </summary>
       [Display(Name ="批次号")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string BatchNo { get; set; }

       
    }
}